package com.hksj.base.service;

import com.hksj.base.mapper.DefaultProductMapper;
import com.hksj.base.query.ProductQuery;
import com.hksj.base.vo.ProductVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DefaultProductService {
    @Autowired
    private DefaultProductMapper defaultProductMapper;

    public List<ProductVO> listProduct(ProductQuery query) {
        return defaultProductMapper.listProduct(query);
    }

    public List<String> listClassifiedIdByKey(String key, boolean isParent) {
        return defaultProductMapper.listClassifiedIdByKey(key,isParent);
    }
}
